package cn.tedu.medicalmanagementsystem.manager.mapper;

import cn.tedu.medicalmanagementsystem.manager.pojo.dto.NoticeQuery;
import cn.tedu.medicalmanagementsystem.manager.pojo.entity.Notice;
import cn.tedu.medicalmanagementsystem.manager.pojo.vo.NoticeVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NoticeMapper {
    List<NoticeVO> selectNotices();
    void insert(Notice notice);
    int deleteById(Long id);

    void addViewCount(Long id);

    int updateById(Notice notice);

    Notice selectById(Long id);

    NoticeVO selectNotice(NoticeQuery noticeQuery);
}
